package demo;

public class A implements B{//故实现接口可以直接访问
    public static void main(String args[]){
        int i;
        A a1=new  A();
        i =a1.k;
        System.out.println("i="+i);
    }
}
